package com.javajun.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.javajun.custom.BaseService;
import com.javajun.entity.StuNum;
import com.javajun.repository.StuNumRepository;

@Service
public class StuNumService extends BaseService<StuNum, Integer>{

    @Autowired
    private StuNumRepository stuNumRepository;
    
    public StuNum findByStuNum(String stuNum) {
        // TODO Auto-generated method stub
        return stuNumRepository.findByStuNum(stuNum);
    }

    public List<StuNum> findAllByOrderByIdDesc() {
        return stuNumRepository.findAllByOrderByIdDesc();
    }
    


}
